package com.onstar.cn.vehicle.entity;

import java.io.Serializable;

/**
 * Created by 6335yz on 2016/1/19.
 */
public enum ChargeTimeEnd implements Serializable {
    EST_CHG_END_120V("EST CHG END 120V"),
    EST_CHG_END_240V("EST CHG END 240V"),
    EST_CHG_END_220V("EST CHG END 220V"),
    EST_CHG_END_400V("EST CHG END 400V");

    private String value;
    ChargeTimeEnd(String value) {
        this.value = value;
    }
    public String getStringValue() {
        return value;
    }

    public static ChargeTimeEnd fromValue(String v) {
        for (ChargeTimeEnd c : ChargeTimeEnd.values()) {
            if (c.value.equals(v)) {
                return c;
            }
        }
        return null;
    }
}
